let obj1 = {age: 1, getName () {return 'obj1'}};
// let obj2 = {};
let obj2 = {
  __proto__: obj1,
  getName () {
    return 'obj2' + super.getName();
  }
};

// Object.setPrototypeOf(obj2, obj1);
// obj2.__proto__ = obj1;
console.log(obj2);
console.log(obj2.age);
console.log(obj2.getName());

